import 'package:flutter/material.dart';

import '../../homefont.dart';
import '../../ityingFont.dart';

// 官方说明：https://fonts.google.com/icons
class IconView extends StatelessWidget {
  const IconView({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              Icon(
                Icons.toggle_off,
                color: Colors.blueAccent,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                Icons.audiotrack,
                color: Colors.red,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                Icons.people,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                ItyingIcon.book,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                HomeFont.waichu,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                HomeFont.xinpan,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                HomeFont.huijia,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                HomeFont.lijia,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              Icon(
                ItyingIcon.address,
                color: Colors.yellow,
                size: 40,
                textDirection: TextDirection.ltr,
              ),
              SizedBox(height: 30),
              IconButton(
                icon: Icon(
                  Icons.favorite,
                  color: Colors.red,
                  size: 40,
                  textDirection: TextDirection.ltr,
                ),
                onPressed: () {
                  //ToastUtil.showToast('onPressed');
                },
              ),
            ],
          ),
        ),
      ),
    );
  }
}
